import { Entity, PrimaryGeneratedColumn, ManyToOne, Column } from 'typeorm'
import { Api } from './api.entity'

@Entity()
export class ApiReturn {
  @PrimaryGeneratedColumn()
  id: number

  @Column()
  name: string

  @Column()
  type: string

  @Column()
  description: string

  @ManyToOne(type => Api, api => api.params)
  api: Api
}
